package com.pro.service.imple;

import com.pro.mapper.JsUnsealMapper;
import com.pro.pojo.JsUnseal;
import com.pro.service.JsUnsealService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
 * ClassName:JsUnsealServiceImple
 * Package:com.pro.service.imple
 * Description:
 *
 * @Date:2021/11/25 18:24
 * @Author: ZPT
 */
@Service
public class JsUnsealServiceImple implements JsUnsealService {

    @Autowired(required = false)
    private JsUnsealMapper jsUnsealMapper;

    @Override
    public Boolean addUnseal(JsUnseal jsUnseal) {
        jsUnseal.setUnsealDate(new Date());
        return jsUnsealMapper.addUnseal(jsUnseal);
    }

    @Override
    public List<JsUnseal> getUnseal(Integer type,String account,String nickname,String unsealDate) {
        return jsUnsealMapper.getUnseal(type,account,nickname,unsealDate);
    }

    @Override
    public Boolean deleteUnsealLog(Integer id) {
        return jsUnsealMapper.deleteUnsealLog(id);
    }
}
